# Install hook code here
# install depencies if nogt yet installed
unless File.exists?(File.dirname(__FILE__) + '../active_record_base_without_table')
  plugin_url = 'http://svn.viney.net.nz/things/rails/plugins/active_record_base_without_table'
  puts "\n\nRequired plugin #{plugin_url} not found. Trying to install ...\n\n"
  
  Commands::Plugin.parse!(['install', plugin_url])
end

puts "\n\nto generate send-to-friend code type:\n\n  ruby script/generate send_to_friends \n\n"
